#
# Be sure to run `pod lib lint ZJSwiftKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'ZJSwiftKit'
    s.version          = '0.1.2'
    s.summary          = 'A short description of ZJSwiftKit.'
    s.description      = <<-DESC
    TODO: Add long description of the pod here.
    DESC
    
    s.homepage         = 'https://github.com/zyx/ZJSwiftKit'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'zyx' => '845709917@qq.com' }
    s.source           = { :git => 'https://codehub.devcloud.cn-east-3.huaweicloud.com/jybiOSzjkjdlAPP_zhangyunxiao00001/ZJSwiftKit.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
    s.swift_version = '5.0'
    s.ios.deployment_target = '11.0'
    #s.source_files = 'ZJSwiftKit/**/*.*'
    s.default_subspec = "Code"
    # s.xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
    s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }


    s.subspec "Code" do |sss|
    #子模块
      sss.subspec 'ZJCocoa' do |ss|
          ss.source_files = "ZJSwiftKit/ZJCocoa/**/*"
      end
      
      #子模块
      sss.subspec 'ZJSwiftStdlib' do |ss|
          ss.source_files = "ZJSwiftKit/ZJSwiftStdlib/**/*"
      end
      
      #子模块
      sss.subspec 'ZJSwift' do |ss|
          ss.source_files = "ZJSwiftKit/ZJSwift/**/*"
      end
    end
    s.subspec "XCFramework" do |sss|
      sss.vendored_frameworks = "Example/XCFramework/ZJSwiftKit.xcframework"
    end
end
